package com.yidian.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.yidian.dao.ResourceMapper;
import com.yidian.pojo.system.Resource;
import com.yidian.server.system.ResourceService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author whb
 * @create 2021-06-11 14:01
 * @desciption 权限Service接口实现类
 */
@Service
public class ResourceServiceImpl implements ResourceService {
    @Autowired
    private ResourceMapper resourceMapper;

    /**
     * 查询登录用户的权限列表
     * @param loginName
     * @return
     */
    @Override
    public List<Resource> findResourceByLoginName(String loginName) {
        return resourceMapper.findResourceByLoginName(loginName);
    }
}
